/* ==========================================================
   BKV Bonn – bereinigte Styles
   Desktop: normale Navigation
   Bis 992px: Hamburger-Menü
   Header klappt beim Scrollen auf beiden Ansichten ein
   ========================================================== */

/* ---------- Basis ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 150px;
    background: #fff;
    color: #303030;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: #000;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease;
}

a:hover,
a:focus {
    color: #336666;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

p {
    margin: 0 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    color: #303030;
    font-weight: 700;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix {
    clear: both;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.btn-primary {
    padding: 12px 20px;
    background: #003333;
    color: #fff !important;
    font-size: 15px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1f5d5d;
    color: #fff !important;
}

.btn-primary2 {
    padding: 10px 22px;
    border: 1px solid #d6d6d6;
    background: #ececec;
    color: #000 !important;
    font-weight: 700;
}

.btn-primary2:hover,
.btn-primary2:focus {
    background: #003333;
    color: #fff !important;
}

.btn-success {
    padding: 10px 18px;
    background: #336666;
    color: #fff;
}

.btn-warning {
    padding: 10px 18px;
    background: #303030;
    color: #fff;
}

/* ==========================================================
   Header
   ========================================================== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10000;
    width: 100%;
    height: 150px;
    overflow: visible;
    background: #669999;
    transition: height 0.35s ease;
}

/* Oberer Logo-/Titelbereich */

.site-header .hot {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 92px;
    overflow: visible;
    background: #669999;
    transform: translateY(0);
    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}

.site-header .hot .container,
.site-header .hot table {
    height: 92px;
}

.site-header .hot .container {
    position: relative;
}

.site-header .hot table {
    width: 100%;
}

.site-logo {
    position: absolute;
    top: 10px;
    left: 15px;
    z-index: 10;
    width: 96px !important;
    height: auto;
    transform: translateY(0) scale(1);
    transform-origin: top left;
    will-change: transform;
    transition: transform 0.35s ease;
}

.site-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    opacity: 1;
    transform: translateY(0px);
    transition:
        opacity 0.2s ease,
        transform 0.35s ease;
}

/* Untere Navigationsleiste */

.site-header .header-bottom {
    position: absolute;
    top: 92px;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 58px;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: #3d6f6e;
    transform: translateY(0);
    transition:
        transform 0.35s ease,
        padding 0.35s ease;
}

.site-header .header-bottom .container {
    position: relative;
}

.menu-toggle {
    display: none;
}

.printing-end {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    transition: padding-left 0.35s ease;
}

/* Desktop-Dropdowns */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 230px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    background: #429b88;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dropdown-content a:last-child {
    border-bottom: 0;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background: #174d45;
    color: #fff;
}

/* Eingeklappter Header – Desktop */

.site-header.scrolled {
    height: 58px;
}

.site-header.scrolled .hot {
    transform: translateY(-92px);
}

.site-header.scrolled .header-bottom {
    transform: translateY(-92px);
}

.site-header.scrolled .site-title {
    opacity: 0;
    transform: translateY(-20px);
}

.site-header.scrolled .site-logo {
    transform: translateY(94px) scale(0.48);
}

.site-header.scrolled .printing-end {
    padding-left: 60px;
}

/* ==========================================================
   Inhalt / Karten
   ========================================================== */

.content {
    width: 100%;
}

.printing-content {
    padding: 0;
}

.flexbox {
    display: flex;
    flex-wrap: wrap;
}

.comments-main {
    margin-bottom: 35px;
}

.comments-main h2 {
    margin-bottom: 30px;
    color: #303030;
    font-size: 32px;
    font-weight: 700;
}

.pr-grid1 {
    display: flex;
    align-items: stretch;
    min-height: 240px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #4f7172;
    border-radius: 15px;
    background: #fff;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.pr-grid1:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cmts-main-left {
    display: flex;
    flex: 0 0 35%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    background: #f7f7f7;
}

.cmts-main-left img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pr-grid1:hover .cmts-main-left img {
    transform: scale(1.05);
}

.cmts-main-right {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.cmts-main-right h3 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.3;
}

.cmts-main-right p {
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.cmts-main-right .btn-primary2 {
    align-self: flex-start;
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
    margin-top: 60px;
}

.footer-top {
    padding: 50px 0;
    background: #111;
}

.footer-top h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-top a {
    color: #ccc;
}

.footer-top a:hover,
.footer-top a:focus {
    color: #fff;
}

.footer-links,
.footer-rechts {
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 8px;
    background: #1d1d1d;
}

.footer-bottom {
    padding: 20px;
    background: #303030;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #fff;
}

/* ==========================================================
   Tablet, Handy und starke Browser-Vergrößerung
   ========================================================== */

@media (max-width: 992px) {

    body {
        padding-top: 150px;
    }

    .container {
        width: 95%;
    }

    /* Oberer Header bleibt gleich hoch wie auf Desktop */

    .site-header {
        height: 150px;
    }

    .site-header .hot,
    .site-header .hot .container,
    .site-header .hot table {
        height: 92px;
    }

    .site-header .hot {
        padding: 0;
    }

    .site-header .hot td:first-child {
        width: 90px !important;
        min-width: 90px;
        padding: 0;
        vertical-align: middle;
    }

    .site-header .hot td:last-child {
        padding: 0 8px 0 0;
        vertical-align: middle;
    }

    /*
       Wichtig: top/left bleiben in beiden Zuständen gleich.
       Nur transform wird animiert. Dadurch kein Springen.
    */
    .site-logo {
        top: 10px;
        left: 0px;
        width: 80px !important;
        transform: translateY(0) scale(1);
        transform-origin: top left;
        transition: transform 0.35s ease;
    }

    .site-title {
        margin: 0;
        font-size: clamp(16px, 3.2vw, 23px);
        line-height: 1.1;
        opacity: 1;
        transform: none;
    }

    .site-header .header-bottom {
        top: 92px;
        height: 58px;
        padding: 7px 0;
        overflow: visible;
    }

    .site-header .header-bottom .container {
        width: 100%;
        max-width: none;
        padding: 0 12px;
    }

    /* Hamburger-Schaltfläche */

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        height: 44px;
        padding: 0 16px;
        border: 0;
        border-radius: 5px;
        background: #003333;
        color: #fff;
        font: inherit;
        font-size: 18px;
        cursor: pointer;
        transform: translateX(0);
        transform-origin: left center;
        will-change: transform, width;
        transition:
            transform 0.35s ease,
            width 0.35s ease;
    }

    .menu-toggle-icon {
        font-size: 27px;
        line-height: 1;
    }

    /* Hauptmenü geschlossen */

    .site-header .printing-end {
        display: none;
        position: absolute;
        top: 51px;
        left: 12px;
        right: 12px;
        z-index: 10020;
        width: auto;
        max-height: calc(100vh - 70px);
        margin: 0;
        padding: 8px;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 0 0 8px 8px;
        background: #3d6f6e;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .site-header.menu-open .printing-end {
        display: block;
    }

    .site-header .printing-end > a,
    .site-header .printing-end > .dropdown {
        display: block;
        width: 100%;
        margin: 0 0 7px;
    }

    .site-header .printing-end > :last-child {
        margin-bottom: 0;
    }

    .site-header .btn-primary {
        display: block;
        width: 100%;
        margin: 0;
        padding: 12px 16px;
        text-align: left;
        white-space: normal;
    }

    /* Mobile Dropdowns */

    .site-header .dropdown {
        position: static;
        width: 100%;
    }

    .site-header .dropdown > .btn-primary::after {
        content: "⌄";
        float: right;
        margin-left: 15px;
        font-size: 20px;
        line-height: 1;
    }

    .site-header .dropdown.mobile-open > .btn-primary::after {
        content: "⌃";
    }

    .site-header .dropdown-content {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        max-height: none;
        margin: 4px 0 8px;
        overflow: visible;
        border-radius: 5px;
        background: #429b88;
        box-shadow: none;
    }

    .site-header .dropdown:hover .dropdown-content,
    .site-header .dropdown:focus-within .dropdown-content {
        display: none;
    }

    .site-header .dropdown.mobile-open .dropdown-content,
    .site-header .dropdown.mobile-open:hover .dropdown-content {
        display: block;
    }

    .site-header .dropdown-content a {
        padding: 11px 16px;
    }

    /* Eingeklappter Zustand – mobil/Zoom */

    .site-header.scrolled {
        height: 58px;
    }

    .site-header.scrolled .hot {
        transform: translateY(-92px);
    }

    .site-header.scrolled .header-bottom {
        transform: translateY(-92px);
    }

    .site-header.scrolled .site-title {
        opacity: 0;
        transform: translateY(-20px);
    }

    /*
       Das Logo bewegt sich nur über transform.
       Dadurch läuft Hin- und Rückanimation identisch.
    */
    .site-header.scrolled .site-logo {
        transform: translateY(94px) scale(0.65);
    }

    /*
       Nur der Menüknopf weicht dem Logo aus.
       Das aufgeklappte Menü bleibt über die volle Breite.
    */
    .site-header.scrolled .menu-toggle {
        width: calc(100% - 68px);
        transform: translateX(68px);
    }

    .site-header.scrolled .printing-end {
        top: 51px;
        left: 12px;
        right: 12px;
        width: auto;
        padding: 8px;
    }

    /* Karten */

    .flexbox {
        display: block;
    }

    .col-md-6,
    .footer-links,
    .footer-rechts {
        width: 100%;
        margin-bottom: 20px;
    }

    .pr-grid1 {
        flex-direction: column;
    }

    .cmts-main-left {
        flex: none;
        width: 100%;
        padding: 0;
    }

    .cmts-main-left img {
        width: 100%;
        height: 240px;
        border-radius: 8px 8px 0 0;
        object-fit: cover;
    }

    .cmts-main-right {
        width: 100%;
        padding: 20px;
    }
}

@media (max-width: 576px) {

    body {
        font-size: 15px;
    }

    .comments-main h2 {
        font-size: 24px;
        text-align: center;
    }

    .cmts-main-right h3 {
        font-size: 21px;
    }

    .cmts-main-left img {
        height: 220px;
    }
}

/* ---------- Hilfsklassen ---------- */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }

.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }

/* ---------- Druck ---------- */

@media print {

    .site-header,
    .footer {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: #fff;
        color: #000;
    }
}

/* Bewegung reduzieren, wenn das Betriebssystem dies verlangt */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}